<?php

$mFormRollback = new FormRecovery($_POST);
$mValidation = new InputValidation();
$mData = new DBQueryExecute();
$mFunction = new Fungsi();

$mData->SetTargerURL("main.php?menu=99&submenu=311");

$mAct = 'edt';


//SETUP Nama Tabel
$mData->SetTableName("app_person");
$mData->SetMultiForm(false);

//$tGoto= "main.php?menu=11&submenu=111";
if ($mAct == 'edt') {
    $mFunction->SetVariableToMultiFormVariableSupport('fPersonId', $_SESSION['User']['Id'], false, false);
    $mData->SetPrimaryKey('id_person', 'fPersonId', pUserId);
    $mData->SetField('email', 'fNama', pMail);
    
    if (!$mData->GetError())
        $tResult = $mData->ExecuteQuery($mAct);
} else {
    if (!$mAct && $_POST['act']) {
        // ERROR: aksi tidak diketahui. kemungkinan diubah oleh user
    } else {
        // ERROR: nilai aksi tidak didefinisikan
    }
}
?>
